﻿using MachineVision.Service.Dto;

namespace MachineVision.Service
{
    public interface IMissionService
    {
        List<MissionHistory> GetMissions(out int total,int pageNum = 1, int pageSize = 10, DateTime? TimeBegin = null, DateTime? TimeEnd = null);
        MissionHistory GetMission(int Id);
        bool AddMission(MissionHistory res);
        //bool ModifyMission(int Id, MissionHistory value);

        MissionNum GetMissionNum(string num);
        List<MissionNum> GetMissionNums(out int total, int pageNum = 1, int pageSize = 10, DateTime? TimeBegin = null, DateTime? TimeEnd = null);
        List<MissionHistory> Get1Missions(string MissionNum, out int total, int pageNum = 1, int pageSize = 10);


        List<Warning> GetWarnings(out int total, int pageNum = 1, int pageSize = 10, DateTime? TimeBegin = null, DateTime? TimeEnd = null);
        Warning GetWarning(int Id);
        bool AddWarning(Warning res);
        //bool ModifyWarning(int Id, MissionHistory value);
    }
}